import SvgIcon from './SvgIcon/index.vue';

import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const allGloabComponent = { SvgIcon };

export default {
    // 务必叫做install
    // @ts-ignore
    install(app) { 
        Object.keys(allGloabComponent).forEach(key => {
            // @ts-ignore
            app.component(key, allGloabComponent[key]);

        });
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    },

}